<?php

namespace app\merchant\controller;

use app\common\model\GoodsReply as GoodsReplyModel;
use think\Db;
class GoodsReply extends Common
{
	public function update()
	{ 
		$comment_id = input('param.comment_id');
		$content = input('param.content');
		$result=Db::table('goods_comment_replay')->where([
			'replay_merchant_id' => session('merchant.merchant_id'),
			'comment_id' => $comment_id,
	])->setField('replay_reply', $content);


		if(!$result)
		{
			return returnJson(0, '数据更新失败，请稍后重试');
		}

		return returnJson(1, '回复修改成功');
	}

}